package LinkDatabase;

import java.util.List;

import org.w3c.dom.UserDataHandler;


public class IUserImp  implements IUser{
	
	UserDao ud=new UserDao();
	@Override
	public int queryUser(String name,String password) {
		return ud.queryUser(name,password);
	}
	@Override
	public List<User> queryAll() {
		return ud.queryAll();
	}
	@Override
	public int addUser(User user) {
	
		return ud.addUser(user);
	}
	
	public int updateUser(User old_user, User new_user) {
		return ud.updateUser(old_user, new_user);
}
	
	public 	User FindPassword(String username) {
		return ud.FindPassword(username);
		
	}
}
